﻿using System.Collections.Generic;
namespace Netbits.Common.Collections
{
	/// <summary>
	/// Extended IEnumerable interface.
	/// Add support for read other index.
	/// </summary>
	/// <typeparam name="TItem">Type of item</typeparam>
	public interface IEnumerableExtended<TItem> : IEnumerable<TItem>, IIndexRead<TItem>
	{
		/// <summary>
		/// Get the first item of the list.
		/// </summary>
		TItem First
		{
			get;
		}

		/// <summary>
		/// Get the last item of the list
		/// </summary>
		TItem Last
		{
			get;
		}
	}
}
